STEP 18: We're done with our update_high_scores function! Let's see our new file printed to the console.

  • In , drag Call w/ Parameter into Variable inside main(). It should be indented 4 spaces.
  • Change the variable my_var to new_data. This will contain the updated list of the users' name and score.
  • Then, change my_function to get_high_scores to call the function we created beforehand.
  • Change my_parameter to "updated_scores.csv". This is the file that you just made!

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)